#include<bits/stdc++.h>
using namespace std;
random_device seed;
mt19937 mt(seed());
int main(){
    int n = 1e5,LMT = 1e6;
    cout<<n <<' '<<n<<'\n';
    for(int i = 1;i<=n;i++){
        cout<<mt()%LMT + 1<<' '<<mt()%LMT + 1<<'\n'; 
    }

    for(int i = 1;i<=n;i++){
        cout<<mt()%2 + 1<<' ';
        cout<<mt()%LMT + 1<<' '<<mt()%LMT + 1<<'\n'; 
    }
}   
